Integrand size = 17, antiderivative size = 66 \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=\frac {5 \text {arctanh}(\cos (a+b x))}{2 b}-\frac {5 \cos (a+b x)}{2 b}-\frac {5 \cos ^3(a+b x)}{6 b}-\frac {\cos ^3(a+b x) \cot ^2(a+b x)}{2 b} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {2672, 294, 308, 212} \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=\frac {5 \text {arctanh}(\cos (a+b x))}{2 b}-\frac {5 \cos ^3(a+b x)}{6 b}-\frac {5 \cos (a+b x)}{2 b}-\frac {\cos ^3(a+b x) \cot ^2(a+b x)}{2 b} \]
[In]
[Out]
Rule 212
Rule 294
Rule 308
Rule 2672
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {x^6}{\left (1-x^2\right )^2} \, dx,x,\cos (a+b x)\right )}{b} \\ & = -\frac {\cos ^3(a+b x) \cot ^2(a+b x)}{2 b}+\frac {5 \text {Subst}\left (\int \frac {x^4}{1-x^2} \, dx,x,\cos (a+b x)\right )}{2 b} \\ & = -\frac {\cos ^3(a+b x) \cot ^2(a+b x)}{2 b}+\frac {5 \text {Subst}\left (\int \left (-1-x^2+\frac {1}{1-x^2}\right ) \, dx,x,\cos (a+b x)\right )}{2 b} \\ & = -\frac {5 \cos (a+b x)}{2 b}-\frac {5 \cos ^3(a+b x)}{6 b}-\frac {\cos ^3(a+b x) \cot ^2(a+b x)}{2 b}+\frac {5 \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cos (a+b x)\right )}{2 b} \\ & = \frac {5 \text {arctanh}(\cos (a+b x))}{2 b}-\frac {5 \cos (a+b x)}{2 b}-\frac {5 \cos ^3(a+b x)}{6 b}-\frac {\cos ^3(a+b x) \cot ^2(a+b x)}{2 b} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.56 \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=-\frac {9 \cos (a+b x)}{4 b}-\frac {\cos (3 (a+b x))}{12 b}-\frac {\csc ^2\left (\frac {1}{2} (a+b x)\right )}{8 b}+\frac {5 \log \left (\cos \left (\frac {1}{2} (a+b x)\right )\right )}{2 b}-\frac {5 \log \left (\sin \left (\frac {1}{2} (a+b x)\right )\right )}{2 b}+\frac {\sec ^2\left (\frac {1}{2} (a+b x)\right )}{8 b} \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.06
method | result | size |
derivativedivides | \(\frac {-\frac {\cos ^{7}\left (b x +a \right )}{2 \sin \left (b x +a \right )^{2}}-\frac {\left (\cos ^{5}\left (b x +a \right )\right )}{2}-\frac {5 \left (\cos ^{3}\left (b x +a \right )\right )}{6}-\frac {5 \cos \left (b x +a \right )}{2}-\frac {5 \ln \left (\csc \left (b x +a \right )-\cot \left (b x +a \right )\right )}{2}}{b}\) | \(70\) |
default | \(\frac {-\frac {\cos ^{7}\left (b x +a \right )}{2 \sin \left (b x +a \right )^{2}}-\frac {\left (\cos ^{5}\left (b x +a \right )\right )}{2}-\frac {5 \left (\cos ^{3}\left (b x +a \right )\right )}{6}-\frac {5 \cos \left (b x +a \right )}{2}-\frac {5 \ln \left (\csc \left (b x +a \right )-\cot \left (b x +a \right )\right )}{2}}{b}\) | \(70\) |
parallelrisch | \(\frac {\left (60 \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )\right ) \cos \left (2 b x +2 a \right )-50 \cos \left (b x +a \right )+65 \cos \left (2 b x +2 a \right )+25 \cos \left (3 b x +3 a \right )+\cos \left (5 b x +5 a \right )-60 \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )\right )-65\right ) \left (\sec ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right ) \left (\csc ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{192 b}\) | \(102\) |
norman | \(\frac {-\frac {1}{8 b}+\frac {\tan ^{10}\left (\frac {b x}{2}+\frac {a}{2}\right )}{8 b}-\frac {75 \left (\tan ^{4}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8 b}-\frac {65 \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{12 b}-\frac {55 \left (\tan ^{6}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8 b}}{\left (1+\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )^{3} \tan \left (\frac {b x}{2}+\frac {a}{2}\right )^{2}}-\frac {5 \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{2 b}\) | \(114\) |
risch | \(-\frac {{\mathrm e}^{3 i \left (b x +a \right )}}{24 b}-\frac {9 \,{\mathrm e}^{i \left (b x +a \right )}}{8 b}-\frac {9 \,{\mathrm e}^{-i \left (b x +a \right )}}{8 b}-\frac {{\mathrm e}^{-3 i \left (b x +a \right )}}{24 b}+\frac {{\mathrm e}^{3 i \left (b x +a \right )}+{\mathrm e}^{i \left (b x +a \right )}}{b \left ({\mathrm e}^{2 i \left (b x +a \right )}-1\right )^{2}}-\frac {5 \ln \left ({\mathrm e}^{i \left (b x +a \right )}-1\right )}{2 b}+\frac {5 \ln \left ({\mathrm e}^{i \left (b x +a \right )}+1\right )}{2 b}\) | \(128\) |
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 93, normalized size of antiderivative = 1.41 \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=-\frac {4 \, \cos \left (b x + a\right )^{5} + 20 \, \cos \left (b x + a\right )^{3} - 15 \, {\left (\cos \left (b x + a\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) + 15 \, {\left (\cos \left (b x + a\right )^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) - 30 \, \cos \left (b x + a\right )}{12 \, {\left (b \cos \left (b x + a\right )^{2} - b\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 719 vs. \(2 (58) = 116\).
Time = 2.25 (sec) , antiderivative size = 719, normalized size of antiderivative = 10.89 \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=\text {Too large to display} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.00 \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=-\frac {4 \, \cos \left (b x + a\right )^{3} - \frac {6 \, \cos \left (b x + a\right )}{\cos \left (b x + a\right )^{2} - 1} + 24 \, \cos \left (b x + a\right ) - 15 \, \log \left (\cos \left (b x + a\right ) + 1\right ) + 15 \, \log \left (\cos \left (b x + a\right ) - 1\right )}{12 \, b} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 163 vs. \(2 (58) = 116\).
Time = 0.33 (sec) , antiderivative size = 163, normalized size of antiderivative = 2.47 \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=\frac {\frac {3 \, {\left (\frac {10 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + 1\right )} {\left (\cos \left (b x + a\right ) + 1\right )}}{\cos \left (b x + a\right ) - 1} - \frac {3 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac {16 \, {\left (\frac {12 \, {\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac {9 \, {\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - 7\right )}}{{\left (\frac {\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 1\right )}^{3}} - 30 \, \log \left (\frac {{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right )}{24 \, b} \]
[In]
[Out]
Time = 1.16 (sec) , antiderivative size = 129, normalized size of antiderivative = 1.95 \[ \int \cos ^3(a+b x) \cot ^3(a+b x) \, dx=\frac {{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^2}{8\,b}-\frac {5\,\ln \left (\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )\right )}{2\,b}-\frac {\frac {49\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^6}{8}+\frac {67\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^4}{8}+\frac {121\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^2}{24}+\frac {1}{8}}{b\,\left ({\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^8+3\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^6+3\,{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^4+{\mathrm {tan}\left (\frac {a}{2}+\frac {b\,x}{2}\right )}^2\right )} \]
[In]
[Out]